home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-30 | 16.3 KB | 1,023 lines | [TEXT/CWIE] |
- { DDocData.p -- data container class for Everything}
-
- Unit DDocData;
- Interface
-
- Uses
- Types,
- OSUtils,
-
-
- AMSignaler;
-
- const
- idStandard = longint ('Stad');
- idXx = longint ('Xx ');
- idLR = longint ('LR ');
- idLR2 = longint ('LR2 ');
- idLR3 = longint ('LR3 ');
- idLR4 = longint ('LR4 ');
- idCheckbox = longint ('Chex');
- idCheckbox2 = longint ('Che2');
- idNext = longint ('Next');
- idNext2 = longint ('Nex2');
- idRadioGroup = longint ('Radp');
- idGroup = longint ('Grop');
- idGraphic = longint ('Grac');
- idBevel = longint ('Bevl');
- idText = longint ('Text');
- idSmall = longint ('Smal');
- idLarge = longint ('Lare');
- idX12345 = longint ('X145');
- idX12345e6 = longint ('X126');
- idPassword = longint ('Pasd');
- idTheDate = longint ('Thee');
- idTheTime = longint ('Thee');
- idStyled = longint ('Styd');
- idBars = longint ('Bars');
- idStandard2 = longint ('Sta2');
- idGraphic2 = longint ('Gra2');
- idSlider = longint ('Slir');
- idTickMarks = longint ('Tics');
- idNonDirectional = longint ('Nonl');
- idLittleArrows = longint ('Lits');
- idSpinner = longint ('Spir');
- idVolumeControl = longint ('Voll');
- idJimSSlider = longint ('Jimr');
- idStandard3 = longint ('Sta3');
- idIndeterminate = longint ('Inde');
- idChasingArrows = longint ('Chas');
- idRectangle = longint ('Rece');
- idRoundRect = longint ('Rout');
- idBarberPole = longint ('Bare');
- idRoundBarber = longint ('Rour');
- idTools = longint ('Toos');
- idFromValuesList2 = longint ('Fro2');
- idFromMenu = longint ('Frou');
- idTextList = longint ('Tex2');
-
- type
- {----------}
- DDocData = object (AMSignaler)
-
- {data members}
- mStandard: Boolean;
- mXx: Boolean;
- mLR: Boolean;
- mLR2: Boolean;
- mLR3: Boolean;
- mLR4: Boolean;
- mCheckbox: Boolean;
- mCheckbox2: Boolean;
- mNext: Boolean;
- mNext2: Boolean;
- mRadioGroup: SInt16;
- mGroup: SInt16;
- mGraphic: SInt16;
- mBevel: SInt16;
- mText: SInt16;
- mSmall: Str255;
- mLarge: Str255;
- mX12345: SInt32;
- mX12345e6: double;
- mPassword: Str255;
- mTheDate: LongDateRec;
- mTheTime: LongDateRec;
- mStyled: Str255;
- mBars: UInt16;
- mStandard2: SInt16;
- mGraphic2: SInt16;
- mSlider: SInt16;
- mTickMarks: SInt16;
- mNonDirectional: SInt16;
- mLittleArrows: SInt16;
- mSpinner: SInt16;
- mVolumeControl: SInt16;
- mJimSSlider: SInt16;
- mStandard3: SInt16;
- mIndeterminate: SInt16;
- mChasingArrows: SInt16;
- mRectangle: SInt16;
- mRoundRect: SInt16;
- mBarberPole: SInt16;
- mRoundBarber: SInt16;
- mTools: SInt16;
- mFromValuesList2: SInt16;
- mFromMenu: SInt16;
- mTextList: SInt16;
-
- {methods}
- Procedure Initialize; Override;
-
- Function GetStandard: Boolean;
- Procedure SetStandard (inValue: Boolean);
- Function GetXx: Boolean;
- Procedure SetXx (inValue: Boolean);
- Function GetLR: Boolean;
- Procedure SetLR (inValue: Boolean);
- Function GetLR2: Boolean;
- Procedure SetLR2 (inValue: Boolean);
- Function GetLR3: Boolean;
- Procedure SetLR3 (inValue: Boolean);
- Function GetLR4: Boolean;
- Procedure SetLR4 (inValue: Boolean);
- Function GetCheckbox: Boolean;
- Procedure SetCheckbox (inValue: Boolean);
- Function GetCheckbox2: Boolean;
- Procedure SetCheckbox2 (inValue: Boolean);
- Function GetNext: Boolean;
- Procedure SetNext (inValue: Boolean);
- Function GetNext2: Boolean;
- Procedure SetNext2 (inValue: Boolean);
- Function GetRadioGroup: SInt16;
- Procedure SetRadioGroup (inValue: SInt16);
- Function GetGroup: SInt16;
- Procedure SetGroup (inValue: SInt16);
- Function GetGraphic: SInt16;
- Procedure SetGraphic (inValue: SInt16);
- Function GetBevel: SInt16;
- Procedure SetBevel (inValue: SInt16);
- Function GetText: SInt16;
- Procedure SetText (inValue: SInt16);
- Function GetSmall: Str255;
- Procedure SetSmall (inValue: Str255);
- Function GetLarge: Str255;
- Procedure SetLarge (inValue: Str255);
- Function GetX12345: SInt32;
- Procedure SetX12345 (inValue: SInt32);
- Function GetX12345e6: double;
- Procedure SetX12345e6 (inValue: double);
- Function GetPassword: Str255;
- Procedure SetPassword (inValue: Str255);
- Function GetTheDate: LongDateRec;
- Procedure SetTheDate (inValue: LongDateRec);
- Function GetTheTime: LongDateRec;
- Procedure SetTheTime (inValue: LongDateRec);
- Function GetStyled: Str255;
- Procedure SetStyled (inValue: Str255);
- Function GetBars: UInt16;
- Procedure SetBars (inValue: UInt16);
- Function GetStandard2: SInt16;
- Procedure SetStandard2 (inValue: SInt16);
- Function GetGraphic2: SInt16;
- Procedure SetGraphic2 (inValue: SInt16);
- Function GetSlider: SInt16;
- Procedure SetSlider (inValue: SInt16);
- Function GetTickMarks: SInt16;
- Procedure SetTickMarks (inValue: SInt16);
- Function GetNonDirectional: SInt16;
- Procedure SetNonDirectional (inValue: SInt16);
- Function GetLittleArrows: SInt16;
- Procedure SetLittleArrows (inValue: SInt16);
- Function GetSpinner: SInt16;
- Procedure SetSpinner (inValue: SInt16);
- Function GetVolumeControl: SInt16;
- Procedure SetVolumeControl (inValue: SInt16);
- Function GetJimSSlider: SInt16;
- Procedure SetJimSSlider (inValue: SInt16);
- Function GetStandard3: SInt16;
- Procedure SetStandard3 (inValue: SInt16);
- Function GetIndeterminate: SInt16;
- Procedure SetIndeterminate (inValue: SInt16);
- Function GetChasingArrows: SInt16;
- Procedure SetChasingArrows (inValue: SInt16);
- Function GetRectangle: SInt16;
- Procedure SetRectangle (inValue: SInt16);
- Function GetRoundRect: SInt16;
- Procedure SetRoundRect (inValue: SInt16);
- Function GetBarberPole: SInt16;
- Procedure SetBarberPole (inValue: SInt16);
- Function GetRoundBarber: SInt16;
- Procedure SetRoundBarber (inValue: SInt16);
- Function GetTools: SInt16;
- Procedure SetTools (inValue: SInt16);
- Function GetFromValuesList2: SInt16;
- Procedure SetFromValuesList2 (inValue: SInt16);
- Function GetFromMenu: SInt16;
- Procedure SetFromMenu (inValue: SInt16);
- Function GetTextList: SInt16;
- Procedure SetTextList (inValue: SInt16);
- end;
-
- {----------}
- Function NewDDocData: DDocData;
-
- {----------}
- Implementation
-
- {----------}
- Function NewDDocData: DDocData;
- var
- data: DDocData;
- begin
- data := nil;
- New (data);
- if data <> nil then begin
- data.Initialize;
- end;
- NewDDocData := data;
- end;
-
- {----------}
- Procedure DDocData.Initialize;
- begin
- inherited Initialize;
-
- mStandard := false;
- mXx := false;
- mLR := false;
- mLR2 := false;
- mLR3 := false;
- mLR4 := false;
- mCheckbox := false;
- mCheckbox2 := false;
- mNext := false;
- mNext2 := false;
- mRadioGroup := 0;
- mGroup := 0;
- mGraphic := 0;
- mBevel := 0;
- mText := 0;
- mSmall := 'Small';
- mLarge := 'Large';
- mX12345 := 12345;
- mX12345e6 := 123.45e6;
- mPassword := 'Password';
- mTheDate.eraAlt := 0;
- GetTime (mTheDate.oldDate);
- mTheTime.eraAlt := 0;
- GetTime (mTheTime.oldDate);
- mStyled := '';
- mBars := 0;
- mStandard2 := 5;
- mGraphic2 := 5;
- mSlider := 5;
- mTickMarks := 5;
- mNonDirectional := 5;
- mLittleArrows := 0;
- mSpinner := 5;
- mVolumeControl := 5;
- mJimSSlider := 5;
- mStandard3 := 5;
- mIndeterminate := 0;
- mChasingArrows := 0;
- mRectangle := 5;
- mRoundRect := 5;
- mBarberPole := 0;
- mRoundBarber := 0;
- mTools := 0;
- mFromValuesList2 := 0;
- mFromMenu := 0;
- mTextList := 0;
- end;
-
- {----------}
- Function DDocData.GetStandard: Boolean;
- begin
- GetStandard := mStandard;
-
-
- end;
-
- Procedure DDocData.SetStandard (
- inValue: Boolean);
- begin
- mStandard := inValue;
-
-
- SignalDataChanged (idStandard);
- end;
-
- {----------}
- Function DDocData.GetXx: Boolean;
- begin
- GetXx := mXx;
-
-
- end;
-
- Procedure DDocData.SetXx (
- inValue: Boolean);
- begin
- mXx := inValue;
-
-
- SignalDataChanged (idXx);
- end;
-
- {----------}
- Function DDocData.GetLR: Boolean;
- begin
- GetLR := mLR;
-
-
- end;
-
- Procedure DDocData.SetLR (
- inValue: Boolean);
- begin
- mLR := inValue;
-
-
- SignalDataChanged (idLR);
- end;
-
- {----------}
- Function DDocData.GetLR2: Boolean;
- begin
- GetLR2 := mLR2;
-
-
- end;
-
- Procedure DDocData.SetLR2 (
- inValue: Boolean);
- begin
- mLR2 := inValue;
-
-
- SignalDataChanged (idLR2);
- end;
-
- {----------}
- Function DDocData.GetLR3: Boolean;
- begin
- GetLR3 := mLR3;
-
-
- end;
-
- Procedure DDocData.SetLR3 (
- inValue: Boolean);
- begin
- mLR3 := inValue;
-
-
- SignalDataChanged (idLR3);
- end;
-
- {----------}
- Function DDocData.GetLR4: Boolean;
- begin
- GetLR4 := mLR4;
-
-
- end;
-
- Procedure DDocData.SetLR4 (
- inValue: Boolean);
- begin
- mLR4 := inValue;
-
-
- SignalDataChanged (idLR4);
- end;
-
- {----------}
- Function DDocData.GetCheckbox: Boolean;
- begin
- GetCheckbox := mCheckbox;
-
-
- end;
-
- Procedure DDocData.SetCheckbox (
- inValue: Boolean);
- begin
- mCheckbox := inValue;
-
-
- SignalDataChanged (idCheckbox);
- end;
-
- {----------}
- Function DDocData.GetCheckbox2: Boolean;
- begin
- GetCheckbox2 := mCheckbox2;
-
-
- end;
-
- Procedure DDocData.SetCheckbox2 (
- inValue: Boolean);
- begin
- mCheckbox2 := inValue;
-
-
- SignalDataChanged (idCheckbox2);
- end;
-
- {----------}
- Function DDocData.GetNext: Boolean;
- begin
- GetNext := mNext;
-
-
- end;
-
- Procedure DDocData.SetNext (
- inValue: Boolean);
- begin
- mNext := inValue;
-
-
- SignalDataChanged (idNext);
- end;
-
- {----------}
- Function DDocData.GetNext2: Boolean;
- begin
- GetNext2 := mNext2;
-
-
- end;
-
- Procedure DDocData.SetNext2 (
- inValue: Boolean);
- begin
- mNext2 := inValue;
-
-
- SignalDataChanged (idNext2);
- end;
-
- {----------}
- Function DDocData.GetRadioGroup: SInt16;
- begin
- GetRadioGroup := mRadioGroup;
-
-
- end;
-
- Procedure DDocData.SetRadioGroup (
- inValue: SInt16);
- begin
- mRadioGroup := inValue;
-
-
- SignalDataChanged (idRadioGroup);
- end;
-
- {----------}
- Function DDocData.GetGroup: SInt16;
- begin
- GetGroup := mGroup;
-
-
- end;
-
- Procedure DDocData.SetGroup (
- inValue: SInt16);
- begin
- mGroup := inValue;
-
-
- SignalDataChanged (idGroup);
- end;
-
- {----------}
- Function DDocData.GetGraphic: SInt16;
- begin
- GetGraphic := mGraphic;
-
-
- end;
-
- Procedure DDocData.SetGraphic (
- inValue: SInt16);
- begin
- mGraphic := inValue;
-
-
- SignalDataChanged (idGraphic);
- end;
-
- {----------}
- Function DDocData.GetBevel: SInt16;
- begin
- GetBevel := mBevel;
-
-
- end;
-
- Procedure DDocData.SetBevel (
- inValue: SInt16);
- begin
- mBevel := inValue;
-
-
- SignalDataChanged (idBevel);
- end;
-
- {----------}
- Function DDocData.GetText: SInt16;
- begin
- GetText := mText;
-
-
- end;
-
- Procedure DDocData.SetText (
- inValue: SInt16);
- begin
- mText := inValue;
-
-
- SignalDataChanged (idText);
- end;
-
- {----------}
- Function DDocData.GetSmall: Str255;
- begin
- GetSmall := mSmall;
-
-
- end;
-
- Procedure DDocData.SetSmall (
- inValue: Str255);
- begin
- mSmall := inValue;
-
-
- SignalDataChanged (idSmall);
- end;
-
- {----------}
- Function DDocData.GetLarge: Str255;
- begin
- GetLarge := mLarge;
-
-
- end;
-
- Procedure DDocData.SetLarge (
- inValue: Str255);
- begin
- mLarge := inValue;
-
-
- SignalDataChanged (idLarge);
- end;
-
- {----------}
- Function DDocData.GetX12345: SInt32;
- begin
- GetX12345 := mX12345;
-
-
- end;
-
- Procedure DDocData.SetX12345 (
- inValue: SInt32);
- begin
- mX12345 := inValue;
-
-
- SignalDataChanged (idX12345);
- end;
-
- {----------}
- Function DDocData.GetX12345e6: double;
- begin
- GetX12345e6 := mX12345e6;
-
-
- end;
-
- Procedure DDocData.SetX12345e6 (
- inValue: double);
- begin
- mX12345e6 := inValue;
-
-
- SignalDataChanged (idX12345e6);
- end;
-
- {----------}
- Function DDocData.GetPassword: Str255;
- begin
- GetPassword := mPassword;
-
-
- end;
-
- Procedure DDocData.SetPassword (
- inValue: Str255);
- begin
- mPassword := inValue;
-
-
- SignalDataChanged (idPassword);
- end;
-
- {----------}
- Function DDocData.GetTheDate: LongDateRec;
- begin
- GetTheDate := mTheDate;
-
-
- end;
-
- Procedure DDocData.SetTheDate (
- inValue: LongDateRec);
- begin
- mTheDate := inValue;
-
-
- SignalDataChanged (idTheDate);
- end;
-
- {----------}
- Function DDocData.GetTheTime: LongDateRec;
- begin
- GetTheTime := mTheTime;
-
-
- end;
-
- Procedure DDocData.SetTheTime (
- inValue: LongDateRec);
- begin
- mTheTime := inValue;
-
-
- SignalDataChanged (idTheTime);
- end;
-
- {----------}
- Function DDocData.GetStyled: Str255;
- begin
- GetStyled := mStyled;
-
-
- end;
-
- Procedure DDocData.SetStyled (
- inValue: Str255);
- begin
- mStyled := inValue;
-
-
- SignalDataChanged (idStyled);
- end;
-
- {----------}
- Function DDocData.GetBars: UInt16;
- begin
- GetBars := mBars;
-
-
- end;
-
- Procedure DDocData.SetBars (
- inValue: UInt16);
- begin
- mBars := inValue;
-
-
- SignalDataChanged (idBars);
- end;
-
- {----------}
- Function DDocData.GetStandard2: SInt16;
- begin
- GetStandard2 := mStandard2;
-
-
- end;
-
- Procedure DDocData.SetStandard2 (
- inValue: SInt16);
- begin
- mStandard2 := inValue;
-
-
- SignalDataChanged (idStandard2);
- end;
-
- {----------}
- Function DDocData.GetGraphic2: SInt16;
- begin
- GetGraphic2 := mGraphic2;
-
-
- end;
-
- Procedure DDocData.SetGraphic2 (
- inValue: SInt16);
- begin
- mGraphic2 := inValue;
-
-
- SignalDataChanged (idGraphic2);
- end;
-
- {----------}
- Function DDocData.GetSlider: SInt16;
- begin
- GetSlider := mSlider;
-
-
- end;
-
- Procedure DDocData.SetSlider (
- inValue: SInt16);
- begin
- mSlider := inValue;
-
-
- SignalDataChanged (idSlider);
- end;
-
- {----------}
- Function DDocData.GetTickMarks: SInt16;
- begin
- GetTickMarks := mTickMarks;
-
-
- end;
-
- Procedure DDocData.SetTickMarks (
- inValue: SInt16);
- begin
- mTickMarks := inValue;
-
-
- SignalDataChanged (idTickMarks);
- end;
-
- {----------}
- Function DDocData.GetNonDirectional: SInt16;
- begin
- GetNonDirectional := mNonDirectional;
-
-
- end;
-
- Procedure DDocData.SetNonDirectional (
- inValue: SInt16);
- begin
- mNonDirectional := inValue;
-
-
- SignalDataChanged (idNonDirectional);
- end;
-
- {----------}
- Function DDocData.GetLittleArrows: SInt16;
- begin
- GetLittleArrows := mLittleArrows;
-
-
- end;
-
- Procedure DDocData.SetLittleArrows (
- inValue: SInt16);
- begin
- mLittleArrows := inValue;
-
-
- SignalDataChanged (idLittleArrows);
- end;
-
- {----------}
- Function DDocData.GetSpinner: SInt16;
- begin
- GetSpinner := mSpinner;
-
-
- end;
-
- Procedure DDocData.SetSpinner (
- inValue: SInt16);
- begin
- mSpinner := inValue;
-
-
- SignalDataChanged (idSpinner);
- end;
-
- {----------}
- Function DDocData.GetVolumeControl: SInt16;
- begin
- GetVolumeControl := mVolumeControl;
-
-
- end;
-
- Procedure DDocData.SetVolumeControl (
- inValue: SInt16);
- begin
- mVolumeControl := inValue;
-
-
- SignalDataChanged (idVolumeControl);
- end;
-
- {----------}
- Function DDocData.GetJimSSlider: SInt16;
- begin
- GetJimSSlider := mJimSSlider;
-
-
- end;
-
- Procedure DDocData.SetJimSSlider (
- inValue: SInt16);
- begin
- mJimSSlider := inValue;
-
-
- SignalDataChanged (idJimSSlider);
- end;
-
- {----------}
- Function DDocData.GetStandard3: SInt16;
- begin
- GetStandard3 := mStandard3;
-
-
- end;
-
- Procedure DDocData.SetStandard3 (
- inValue: SInt16);
- begin
- mStandard3 := inValue;
-
-
- SignalDataChanged (idStandard3);
- end;
-
- {----------}
- Function DDocData.GetIndeterminate: SInt16;
- begin
- GetIndeterminate := mIndeterminate;
-
-
- end;
-
- Procedure DDocData.SetIndeterminate (
- inValue: SInt16);
- begin
- mIndeterminate := inValue;
-
-
- SignalDataChanged (idIndeterminate);
- end;
-
- {----------}
- Function DDocData.GetChasingArrows: SInt16;
- begin
- GetChasingArrows := mChasingArrows;
-
-
- end;
-
- Procedure DDocData.SetChasingArrows (
- inValue: SInt16);
- begin
- mChasingArrows := inValue;
-
-
- SignalDataChanged (idChasingArrows);
- end;
-
- {----------}
- Function DDocData.GetRectangle: SInt16;
- begin
- GetRectangle := mRectangle;
-
-
- end;
-
- Procedure DDocData.SetRectangle (
- inValue: SInt16);
- begin
- mRectangle := inValue;
-
-
- SignalDataChanged (idRectangle);
- end;
-
- {----------}
- Function DDocData.GetRoundRect: SInt16;
- begin
- GetRoundRect := mRoundRect;
-
-
- end;
-
- Procedure DDocData.SetRoundRect (
- inValue: SInt16);
- begin
- mRoundRect := inValue;
-
-
- SignalDataChanged (idRoundRect);
- end;
-
- {----------}
- Function DDocData.GetBarberPole: SInt16;
- begin
- GetBarberPole := mBarberPole;
-
-
- end;
-
- Procedure DDocData.SetBarberPole (
- inValue: SInt16);
- begin
- mBarberPole := inValue;
-
-
- SignalDataChanged (idBarberPole);
- end;
-
- {----------}
- Function DDocData.GetRoundBarber: SInt16;
- begin
- GetRoundBarber := mRoundBarber;
-
-
- end;
-
- Procedure DDocData.SetRoundBarber (
- inValue: SInt16);
- begin
- mRoundBarber := inValue;
-
-
- SignalDataChanged (idRoundBarber);
- end;
-
- {----------}
- Function DDocData.GetTools: SInt16;
- begin
- GetTools := mTools;
-
-
- end;
-
- Procedure DDocData.SetTools (
- inValue: SInt16);
- begin
- mTools := inValue;
-
-
- SignalDataChanged (idTools);
- end;
-
- {----------}
- Function DDocData.GetFromValuesList2: SInt16;
- begin
- GetFromValuesList2 := mFromValuesList2;
-
-
- end;
-
- Procedure DDocData.SetFromValuesList2 (
- inValue: SInt16);
- begin
- mFromValuesList2 := inValue;
-
-
- SignalDataChanged (idFromValuesList2);
- end;
-
- {----------}
- Function DDocData.GetFromMenu: SInt16;
- begin
- GetFromMenu := mFromMenu;
-
-
- end;
-
- Procedure DDocData.SetFromMenu (
- inValue: SInt16);
- begin
- mFromMenu := inValue;
-
-
- SignalDataChanged (idFromMenu);
- end;
-
- {----------}
- Function DDocData.GetTextList: SInt16;
- begin
- GetTextList := mTextList;
-
-
- end;
-
- Procedure DDocData.SetTextList (
- inValue: SInt16);
- begin
- mTextList := inValue;
-
-
- SignalDataChanged (idTextList);
- end;
-
- end.
-